package com.mrcode.neptuneproject.service;

import com.mrcode.neptuneproject.common.Result;

/**
 * 百度文心一言相关API调用
 *
 * @Author YSH hz22057727
 * @Date 2023/11/17 10:59
 * @Version 1.0
 */
public interface ErnieBotService {


    /**
     * 调用ErnieBot回复API
     *
     * @param prompt question
     * @return Prediction
     */
    Result<String> getErnieBotAnswer(String prompt);

    /**
     * 获取百度access_token
     *
     * @return access_token
     */
    void getAccessToken();
}
